/*
 * @Author: Clark
 * @Email: haixuanwoTxh@gmail.com
 * @Date: 2023-01-04 11:21:23
 * @LastEditors: Clark
 * @LastEditTime: 2023-01-04 11:27:27
 * @Description: file content
 */

#include "apue.h"

int main()
{
    int c = 0;

    while (1)
    {
        c = getc(stdin);
        if (EOF == c)
        {
            if (ferror(stdin))
            {
                err_sys("input error");
            }
            break;
        }

        if (EOF == putc(c, stdout))
        {
            err_sys("output error");
        }
    }

    exit(0);
}
